/*
 * @Author: delin66
 * @Date: 2025-06-04 14:32:14
 * @LastEditors: delin66
 * @LastEditTime: 2025-06-04 14:32:51
 * @Descripttion: 
 */
import request from '@/utils/request'

// 获取人才库列表
export function listTalentPerson(query) {
  return request({
    url: '/kjy/talentPerson/list',
    method: 'get',
    params: query
  })
}

// 获取人才详细信息
export function getTalentPerson(id) {
  return request({
    url: `/kjy/talentPerson/${id}`,
    method: 'get'
  })
}

// 新增人才
export function addTalentPerson(data) {
  return request({
    url: '/kjy/talentPerson',
    method: 'post',
    data: data
  })
}

// 修改人才
export function updateTalentPerson(data) {
  return request({
    url: '/kjy/talentPerson',
    method: 'put',
    data: data
  })
}

// 删除人才
export function delTalentPerson(id) {
  return request({
    url: `/kjy/talentPerson/${id}`,
    method: 'delete'
  })
}

// 批量删除人才
export function delTalentPersons(ids) {
  return request({
    url: `/kjy/talentPerson/${ids}`,
    method: 'delete'
  })
}




